package com.xiaodu.mybatis.service;

import com.xiaodu.mybatis.entity.UserEntity;

import java.util.List;

/**
 * @author: dutianjie
 * @date: 2021/4/16
 * @version: v1.0.0
 * @description: 描述
 **/
public interface UserService {

    UserEntity oneUser(String id) throws Exception;

    List<UserEntity> listUser(List<String> ids) throws Exception;

    List<UserEntity> listUser(UserEntity userEntity) throws Exception;

    UserEntity addUser(UserEntity userEntity) throws Exception;

    int batchUser(List<UserEntity> users)throws Exception;

    int delUser(String id) throws Exception;

    int updateUser(UserEntity userEntity) throws Exception;

    List<UserEntity> pageUser(Integer pageNo, Integer pageSize);
}
